<?php
/**
 * fb.class
 *
 * meta class for include and configure firephp
 *
 */

if( CONSOLE )
require_once( dirname(__FILE__).'/FirePHPCore/fbc.php' );
else
require_once( dirname(__FILE__).'/FirePHPCore/fb.php' );

function __firephp_init() {
$fbc = config::__getMe( ) ->firephp;
if( strtolower( $fbc['enabled'] ) === 'dev' || CONSOLE )
	$fbc['enabled'] = request::__getMe( ) ->isDeveloper( );
$fbc['enabled'] = !!$fbc['enabled'];
FB::setEnabled( $fbc['enabled'] );
if( $fbc['enabled'] )
	FB::setOptions( $fbc );
}
__firephp_init( );

?>